﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Mewdam.OAuth;
using System.Diagnostics;

namespace Mewdam
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Cookies["Authorization"] == null)       
                {
                    Response.Cookies.Add(new HttpCookie("Authorization"));
                }
                if (Request.Cookies["Authorization"]["oauth_token"] != null ||
                    Request.Cookies["Authorization"]["oauth_secret"] != null ||
                    Request.Cookies["Authorization"]["verified"] != null)
                {
                    Response.Redirect("timeline.aspx");
                }            
            }
        }

        protected void btnLogin_Click(object sender, EventArgs e)
        {





        }
    }
}
    
